<?php
function mydebug($var)
{
	echo '<pre>';
	print_r($var);
	echo '</pre>';
}

function showmsg($msg,$returl){
$html = <<<BOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="/themes/admin/assets/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/themes/admin/assets/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/themes/admin/assets/js/common.js"></script>
</head>
<body id="main_page">
<div class="wrap">
    <div class="container">
        <div id="main" style="padding: 10px;">
        
        
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>网址跳转中……</title>
<link type="text/css" rel="stylesheet" href="/themes/admin/assets/css/style.css">
<link type="text/css" rel="stylesheet" href="/themes/admin/assets/css/style-zdb.css">
</head>
<body>
<div class="success">
  <p>&nbsp;</p>
  <p><strong>{$msg}<span style="color:#f60;" id="seconds">3</span>秒后自动返回</strong> </p>
  <p><a id="url" href="{$returl}">如果您的浏览器没有自动跳转，请点击这里！ </a> </p>
  <p>&nbsp;</p>
</div>
<script type="text/javascript">
var i = 2;
var reTime = setInterval(function(){
	i = i-1;
	if(i<0){
		
		window.location.href= '{$returl}'
		window.clearInterval(reTime);
		return;
		
	}
	document.getElementById("seconds").innerHTML = i;
},1000);

</script>
</body>
</html>
BOT;
cflush($html);
exit;
}

	/**
     * 即时输出提示信息
     *
     * @return
     */
function cflush($msg)
{
	    echo $msg;
	    ob_flush();
        flush();
}